

document.querySelector(".shijian").addEventListener("click",function(){
    let time = document.querySelector(".shijian");
    time.innerHTML = 2002.1025;
    console.log("时间");
})
// 找到所有的p标签 ，并添加鼠标进入事件，鼠标进入时，p标签的文字颜色变为红色
 
let wenzi = document.querySelectorAll("p");
for(let i = 0; i < wenzi.length; i++){
    wenzi[i].addEventListener("mouseenter",function(){
        wenzi[i].style.color = "red";
    })
}
for (let i = 0; i < wenzi.length; i++){
    wenzi[i].addEventListener("mouseleave",function(){
        wenzi[i].style.color = "black";
    })
}